<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $this->show('<h1>:)</h1><p>欢迎使用 <b>ThinkPHP</b>！</p><br/>版本 V{$Think.version}</div><script type="text/javascript"  charset="UTF-8"></script>','utf-8');
    }
    public function add(){
    	echo "hello word!";
    }
    public function ad(){
    	$name = "张三";
    	$login_time = time();
    	$data['name'] = $name;
    	$data['time'] = $login_time;
    	//$this->assign('username',$name);
    	//$this->assign('time',$login_time);
    	$this->assign('data',$data);
    	$this->display();
    }
    public function update(){
    	echo "update";
    }

}